import scrapy, hashlib, datetime
import pymongo
import re
from mongodb_connect import U_MongoDB

class ListParse:
    def __init__(self) -> None:
        self.mongo = U_MongoDB(host='127.0.0.1',user='shilang',pwd='shilang').get_db(db_name='spider')

    def parse_url(self):
        sources = list(self.mongo['scrapy_list'].find({},{'_id':False,'section_url':True}))
        print('these url-------',len(sources))

if __name__=='__main__':
    LP = ListParse()
    LP.parse_url()